local qunxian3__baishoukaiduo_jiulongrexi = fk.CreateSkill {

  name = "qunxian3__baishoukaiduo_jiulongrexi",

  tags = {},

}

Fk:loadTranslationTable {
  ["qunxian3__baishoukaiduo_jiulongrexi"] = "酒龙热息",
  [":qunxian3__baishoukaiduo_jiulongrexi"] = [[你可将你的一张牌当做无距离限制的伤害＋2的【火杀】使用，你的【火杀】可额外指定任意名其他角色。]],
  ['#qunxian3__baishoukaiduo_jiulongrexi'] = '酒龙热息：你可将你的一张牌当做无距离次数限制的伤害＋2的【火杀】使用',
  ["$qunxian3__baishoukaiduo_jiulongrexi"] = "酒龙热息",
}

qunxian3__baishoukaiduo_jiulongrexi:addEffect("viewas", {
  anim_type = "offensive",
  pattern = "fire__slash",
  prompt = "#qunxian3__baishoukaiduo_jiulongrexi",
  filter_pattern = {
    min_num = 1,
    max_num = 1,
    pattern = ".|.|.|hand,equip"
  },
  handly_pile = true,
  card_filter = function(self, player, to_select, selected, selected_targets)
    return #selected == 0
  end,
  card_num = 1,
  enabled_at_response = function(self, player, response)
    return not response
  end,
  view_as = function(self, player, cards)
    if #cards ~= 1 then return end
    local c = Fk:cloneCard("fire__slash")
    c.skillName = qunxian3__baishoukaiduo_jiulongrexi.name
    c:addSubcard(cards[1])
    return c
  end,
  after_use = function(self, player, use)
    use.additionalDamage = (use.additionalDamage or 0) + 2
  end
})

qunxian3__baishoukaiduo_jiulongrexi:addEffect("targetmod", {
  bypass_distances = function(self, player, skill, card, to)
    return card and card.name == "fire__slash" and player:hasSkill("qunxian3__baishoukaiduo_jiulongrexi") and
        table.contains(card.skillNames, qunxian3__baishoukaiduo_jiulongrexi.name)
  end,
  extra_target_func = function(self, player, skill, card)
    if card and card.name == "fire__slash" and player:hasSkill("qunxian3__baishoukaiduo_jiulongrexi") and
        table.contains(card.skillNames, qunxian3__baishoukaiduo_jiulongrexi.name) then
      return #Fk:currentRoom().alive_players
    end
  end
})


return qunxian3__baishoukaiduo_jiulongrexi
